# from couchdbkit.ext.django.schema import *
# 
# class Topic(Document):
# 	name=schema.StringProperty()
# 	categories=schema.ListProperty()
# 	
# class Category:
# 	def __init__(self,category,sources=None,associations=None):
# 		self.category=category
# 		self.sources=sources
# 		self.associations=associations
# 	def to_dict(self):
# 		return {"category":self.category,
# 				"sources":[a.to_dict() for a in self.sources],
# 				"associations": [a.to_dict() for a in self.associations]
# 				}
# 				
# class Source:
# 	def __init__(self,type,reference=None):
# 		self.type=type
# 		self.reference=reference
# 	def to_dict(self):
# 		return {"type":self.type,"reference":self.reference}
# 
# class Association(Source):
# 	def __init__(self,type,target,reference=None):
# 		Source.__init__(self,type,reference)
# 		self.target=target
# 	def to_dict(self):
# 		return {"type":self.type,"target":self.target,"reference":self.reference}
# 
# 
# 
# 
# class Person(Document):
# 	first_name=schema.StringProperty()
# 	last_name=schema.StringProperty()
# 	sources=schema.ListProperty()
# 	knowledge=schema.ListProperty()
# 
# class Publisher(Document):
# 	name=schema.StringProperty()
# 	address=schema.StringProperty()
# 	city=schema.StringProperty()
# 	state_province=schema.StringProperty()
# 	country=schema.StringProperty()
# 	website=schema.StringProperty()
# 
# 
# class Course(Document):
# 	name=schema.StringProperty(required=True)
# 	semester=schema.StringProperty()
# 	description=schema.StringProperty()
# 	books=schema.ListProperty()
# 	lecturers=schema.ListProperty()
# 	lectures=schema.ListProperty()
# 
# 
# class Lecture(Document):
# 	lecture_num = schema.IntegerProperty()
# 	title=schema.StringProperty()
# 	source=schema.StringProperty()
# 	topics=schema.ListProperty()
# 
# class Book(Document):
# 	title=schema.StringProperty()
# 	edition=schema.StringProperty()
# 	isbn=schema.StringProperty()
# 	year=schema.StringProperty()
# 	image_url=schema.StringProperty()
# 	publisher=schema.StringProperty()
# 	publisher_listing_url=schema.StringProperty()
# 	authors=schema.ListProperty()
# 	toc=schema.ListProperty()
# 
# class Section(Document):
# 	hierarchy=schema.StringProperty()
# 	order=schema.IntegerProperty()
# 	name=schema.StringProperty()
# 	topics=schema.ListProperty()
# 	page=schema.StringProperty()
# 	children=schema.ListProperty()
# 
# 
# 	
# # import ims.sti.admin
# # 
# # __all__ = ['Book']
